{layout name="common/base" }
<div class="layui-form layuimini-form">
    <input type="text" hidden value="<?php echo $data['id'];?>" name="id">
    <div class="layui-form-item">
        <label class="layui-form-label">审核状态</label>
        <div class="layui-input-block" style="width: 375px;">
            <input type="radio" name="apply_status" lay-filter="apply" title="通过" checked="checked" value='20'/>
            <input type="radio" name="apply_status" lay-filter="apply" title="驳回" value='30'/>
        </div>
    </div>
    <div class="layui-form-item jujue" style="display: none">
        <label class="layui-form-label">拒绝原因</label>
        <div class="layui-input-block" style="width: 375px;">
            <textarea name="reject_reason" style="width: 220px; height: 130px;" cols="5" rows="5"></textarea>
        </div>
    </div>

    <div class="layui-form-item">
        <div class="layui-input-block">
            <button class="layui-btn" lay-submit lay-filter="saveBtn">确认</button>
        </div>
    </div>
</div>

<script type="text/javascript">
    var url = '/admin/dealer.Apply/audit';
    add_edit(url);
    layui.use(['form', 'layedit', 'laydate', 'element','upload'], function () {
        var form = layui.form;
        form.on('radio(apply)', function (data) {
            $('.jujue').css('display', (data.value == 30 ? 'block' : 'none'));
        });
    });



</script>
